package com.open.party.cloud.view.freePhoto.fragment

import cn.android.x.model.data.AppPageData
import cn.android.x.model.data.ResultInfo
import com.open.party.cloud.model.FreePhotosBean
import com.open.party.cloud.model.TaskBean
import com.open.party.cloud.view.freePhoto.FreePhotosDetailActivity
import com.sinothk.android.utils.XUtils


class FreePhotosUndoneListFragment : FreePhotosBaseFragment() {

    override fun getSearchFlag(): String = "2"

    override fun showData(result: ResultInfo<AppPageData<FreePhotosBean>>) {
        if ("2" != result.eventType) {
            return
        }
        updateAdapter(result)
    }

    override fun onClick(position: Int, itemData: FreePhotosBean, flag: String) {
        XUtils.intent().openActivity(activity, FreePhotosDetailActivity::class.java)
            .putStringExtra("id", itemData.id)
            .putIntExtra("fromWhere", 2)
            .start()
    }
}